
.main{
    width: 1226px;
    margin:0 auto
}
.header{
    font-size: 12px;
    border-bottom: 2px solid #ff6700;
    background: #fff;
    color: #b0b0b0;
    position: relative;
    z-index: 20;
    min-width: 1226px;
    height: 100px;
}
.header-logo{
    width: 93px;
    margin-top: 26px;
    float: left;
}
.logo{
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    overflow: hidden;
    background: url(http://localhost/mi/cart/img/logo.png);
    background-size: contain;   
}
.header-title{
    float: left;
    margin-top: 26px;
}
.header-title h2{
    float: left;
    line-height: 48px;
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 400;
color: #424242;
}
.header-title p{
    float: left;
    height: 20px;
    line-height: 20px;
    margin-top: 20px;
    margin-left: 15px;
    color: #757575;
}
.header-r{
    position: relative;
    float: right;
    height: 40px;
    line-height: 40px;
    margin-top: 30px;
}
.header-r .uname{
    color: #ff6700;
}
.header-r a {
    padding: 0 5px;
    text-align: center;
    /* float: left; */
    color: #757575;
    background-color: rgba(0,0,0,0);
    
}
.header-r a:hover{
    /* float: left; */
    color: #ff6700;;
}
.header-r span{
    font-family: sans-serif;
}

/* header结束 */

.wrap{
    min-width: 1226px;
    padding: 38px 0;
    background: #f5f5f5;;
}
.cart-tips{
    text-align: right;
    font-size: 14px;
    color: rgba(0,0,0,.54);
    line-height: 20px;
    margin-bottom: 13px;
}
.tip{
    display: inline-block;
}
.cart-tips span{
    color: #ff6700;
    margin-left: 2px;
}
.cart-tips a{
    margin-left: 12px;
    color: rgba(0,0,0,.87);
}
/* tip结束 */

.cart-list{
    background-color: #fff;
}
.list-head{
    height: 70px;
    line-height: 70px;
    padding-right: 26px;
    color: #424242;
}
.col-check{
    float: left;
    width: 110px;
}
.col-check input{
    margin-left: 24px;
    width: 18px;
    height: 18px;
    margin-right: 15px;
}
.col-img{
    width: 120px;
    float: left;
}
.col-name{
    float: left;
    width: 380px;
}
.col-price{
    float: left;
    width: 140px;
    padding-right: 18px;
    text-align: center;
    color: #424242;
}
.col-num{
    float: left;
    width: 150px;
    text-align: center;
    color: #424242;
}
.col-total{
    float: left;
    width: 120px;
    padding-right: 81px;
    text-align: right;
}
.col-action{
    float: left;
    width: 80px;
    text-align: center;
}
/* 购物车表单标题结束 */

.item-box{
        padding: 15px 26px 15px 0;
        border-top: 1px solid #e0e0e0;
}
table tr{
    display: flex;
    align-items:center;
}
table tr td h3{
    line-height: 1;
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
table tr td:nth-of-type(5) div{
    width: 148px;
    height: 38px;
    border: 1px solid #e0e0e0;
    text-align: center;
    background-color: #fff;
}
table tr td:nth-of-type(5) a{
    float: left;
    width: 38px;
    height: 38px;
    line-height: 38px;
    color: #757575;
    font-size: 20px;
    transition: all .3s;
}
table tr td:nth-of-type(5) a:hover{
    background-color: #e0e0e0;
}
table tr td:nth-of-type(5) input{
    float: left;
    width: 72px;
    height: 38px;
    line-height: 38px;
    padding: 0;
    border-width: 0;
    color: #424242;
    font-size: 16px;
    text-align: center;
}
table tr td:nth-of-type(6) span{
    color: #ff6700;;
}
table tr td:last-of-type a{
    margin-left: 25px;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 12px;
    color: #757575;
    font-size: 16px;
    transition: all .3s;
}
table tr td:last-of-type a:hover{
    color: #fff;
    background-color: #e53935;
}
/* 购物车内容结束 */
.cart-fooder{
    margin-top: 10px;
    height: 50px;
    text-align: right;
    background-color: #fff;
}
.cart-fooder-l{
    float: left;
}
.cart-fooder-l a{
    line-height: 50px;
    margin-left: 32px;
    transition: color .3s;
    color: #757575;
}
.cart-fooder-l a:hover{
    color: #ff6700;
}
.cart-fooder-l span{
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #eee;
    color: #757575;
}
.cart-fooder-l span i{
    color: #ff6700;;
}
.cart-fooder-r span{
    padding-left: 13px;
    color: #ff6700;
}
.cart-fooder-r span i{
    font-size: 30px;
}
.cart-fooder-r span a {
    color: #fff;
    width: 200px;
    height: 48px;
    line-height: 48px;
    font-size: 18px;
    margin-left: 50px;
    vertical-align: top;
    background: #ff6700;
    border: #ff6700 1px solid; 
    transition: color .3s;
    display: inline-block;
    text-align: center;
}
/* 购物车尾部结束 */

.cart-recommend h2{
    position: relative;
    margin: 0;
    height: 50px;
    font-size: 30px;
    font-weight: 400;
    color: #757575;
    border-top: 1px solid #e0e0e0;
}
.cart-recommend h2 span{
    position: absolute;
    top: -20px;
    left: 372px;
    height: 40px;
    width: 482px;
    line-height: 40px;
    text-align: center;
    display: block;
    background-color: #f5f5f5;
}
.cart-recommend ul li:nth-of-type(5n+1){
    margin: 0;
}
.cart-recommend ul li {
    float: left;
    width: 234px;
    height: 300px;
    padding: 0 20px;
    margin: 0 0 14px 14px;
    padding: 0;
    position: relative;
    overflow: hidden;
    list-style: none;
    background-color: #fff;
    text-align: center;
}
.cart-recommend ul li a p:nth-of-type(1){
    color: #333;
}
.cart-recommend ul li a p:nth-of-type(2){
    margin-bottom: 10px;
    color: #ff6700;
}
.cart-recommend ul li a p:nth-of-type(3){
color: #757575;
}
.join a{
    width: 120px;
    height: 28px;
    font-size: 12px;
    line-height: 28px;
    color: #f25807;
    border: 1px solid #b0b0b0;
    background-color: #fff;
    border-color: #f25807;
    display: inline-block;
    text-align: center;
    transition: all .4s;
    position: absolute;
    top: 300px;
    left: 55px;
}
.cart-recommend ul li:hover .join a{
    top: 250px;
}
.cart-recommend ul li a img{
    display: block;
    margin: 40px auto 20px;
    width: 140px;
    height: 140px;
}
.join a:hover{
    color: #fff;
    background-color: #f25807;
}


/* 空购物车的样式 */
.empty-cart-top{
    height: 273px;
    padding-left: 558px;
    margin: 65px 0 130px;
    background: url(http://localhost/mi/cart/img/cart-empty.png) no-repeat 124px 0;
    color: #b0b0b0;
    overflow: hidden;
}
.empty-cart-top h2{
    margin: 70px 0 0 0;
    font-size: 36px;
    color: #b0b0b0;
}
.empty-cart-top p{
    font-size: 20px;
    color: #b0b0b0;
}

.empty-cart-top a{
    margin-top: 20px;
    width: 170px;
    height: 48px;
    line-height: 48px;
    display: inline-block;
    border: 1px solid #ff6700;
    font-size: 14px;
    text-align: center;
    transition: all .4s;
}

.empty-cart-top a:first-of-type{
    color: #fff;
    background: #ff6700;
    margin-right: 10px;
}

.empty-cart-top a:first-of-type:hover{
    background-color: #f25807;
    border-color: #f25807;
    color: #fff;
}
.empty-cart-top a:last-of-type{
    background-color: #f5f5f5;
    color: #ff6700;
}


/* 点击删除之后的弹出框 */
.mi-popup{
    z-index: 100;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
}
.mi-popup-bg{
    opacity: .5;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
    background: #000;
}
.mi-dialog{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    transform: translate(-50%,-50%);
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
    box-sizing: border-box;
    overflow: hidden;
    min-height: 130px;
    text-align: center;
}
.mi-dialog-top{
    text-align: center;
    position: relative;
}
.mi-dialog-top a{
    top: 5px;
    right: 5px;
    position: absolute;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: all .2s;
    border-radius: 15px;
    background-color: #fff;
    color: #757575;
    
}
.mi-dialog-top a:hover{
    color: #fff; 
    outline: 0;
    background-color: #e53935;
}

.mi-dialog-top a span{
    vertical-align: middle;
    font-size: 24px;
    font-weight: 200;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}
.mi-dialog-top p{
    color: #424242;
    line-height: 130px;
    font-size: 18px;
}
.mi-dialog-bon{
    height: 40px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    background-color: #f5f5f5;
}
.mi-dialog-bon button{
    width: 160px;
    height: 40px;
    color: #fff;
    font-size: 14px;
    line-height: 38px;
    text-align: center;
    transition: all .4s;
    overflow: visible;
    border: 1px solid #b0b0b0;
    cursor: pointer;
}
.mi-dialog-bon button:first-of-type{
    background: #ff6700;
    border-color: #ff6700;
}

.mi-dialog-bon button:last-of-type{
    background: #b0b0b0;
    border-color: #b0b0b0;
}
